package com.dd.cloud.user.mapper.resource;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dd.cloud.user.entity.resource.SpreadInfo;
import com.dd.cloud.user.req.resource.SpreadInfoSystemPageReq;
import com.dd.cloud.user.res.resource.SpreadInfoSystemDetailRes;
import com.dd.cloud.user.res.resource.SpreadInfoSystemPageRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lx
 * @version 1.0
 * @date 2024/1/29
 */
public interface SpreadInfoMapper extends BaseMapper<SpreadInfo> {
    /**
     * 查询开屏信息列表
     *
     * @param iPage
     * @param req
     * @return
     */
    IPage<SpreadInfoSystemPageRes> querySpreadInfoSystemPage(IPage<?> iPage, @Param("req") SpreadInfoSystemPageReq req);

    /**
     * 查询开屏信息详情
     *
     * @param id
     * @return
     */
    SpreadInfoSystemDetailRes querySpreadInfoSystemDetail(@Param("id") Integer id);

    /**
     * 查询开屏信息曝光统计数据
     *
     * @param id
     * @return
     */
    List<SpreadInfoSystemDetailRes.SpreadInfoStatisticRes> querySpreadInfoStatisticData(@Param("id") Integer id);
}
